<!DOCTYPE html >
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <link rel="icon" type="image/x-icon" th:href="${application.iconPath}" />
    <title>ssomenu</title>
    <div th:include="../templates/common::html_header"></div>
    <style>
        #zijiedian .zijiedian_name {
            width: 60px;
        }

        #zijiedian .zijiedian_key {
            width: 150px;
        }
    </style>
</head>

<body>
<div class="layui-form contain ">
	<form class="layui-form layui-form-pane" id="menu_form">
	    <!-- <input type="hidden" id="id" name="id" th:value="${id}"/> -->
        <div class="layui-form-item">
            <label class="layui-form-label">系统选择</label>
            <div class="layui-input-inline">
                <select name="systemCode" id="systemCode" lay-filter="systemCode" lay-verify="">
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">菜单编号</label>
            <div class="layui-input-inline">
                <input type="text" name="code" placeholder="请输入菜单编号" class="layui-input" lay-verify="charCode|uniqueCode"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">菜单名称</label>
            <div class="layui-input-inline">
                <input type="text" name="name" placeholder="请输入菜单名称" class="layui-input" lay-verify="required"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">菜单等级</label>
            <div class="layui-input-inline">
                <select name="grade" id="grade" lay-filter="grade" lay-verify="">
                    <option value="1">1</option>
                    <option value="2">2</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">父菜单</label>
            <div class="layui-input-inline">
                <select name="parentCode" id="parentCode" lay-verify="" lay-search>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">图标</label>
            <div class="layui-input-inline" style="width: 300px;">
                <i class="layui-icon" id="select_icon" style="   font-size: 36px;cursor: pointer;float: left;">&#xe6ed;</i>
                <input type="text" name="icon" id="icon" class="layui-input" lay-verify="required" style="width: 100px;float: left;"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">链接</label>
            <div class="layui-input-inline">
                <input type="text" name="url" placeholder="请输入链接" class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">顺序</label>
            <div class="layui-input-inline">
                <input type="text" name="sequence" placeholder="请输入顺序" class="layui-input" lay-verify="number"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否启用</label>
            <div class="layui-input-inline">
                <input type="checkbox" lay-filter="isEnable" lay-skin="switch" lay-text="ON|OFF" checked>
                <input type="hidden" id="isEnable" name="isEnable" value="Y" />
            </div>
        </div>
        <hr class="zijiedian_parent" />
        <div class="layui-form-item zijiedian_parent" style="display: none;">
            <label class="layui-form-label">
                <input class="layui-btn layui-btn-xs  layui-btn-primary" id="zijiedian_add" type="button" value="添加权限" />
            </label>
            <div class="layui-input-block" >
                <ul class="list-unstyled" id="zijiedian">

                </ul>
            </div>
        </div>
        <hr class="zijiedian_parent" />
		<div class="layui-form-item">
			<div class="layui-input-block">
				<button authkey="sso_menu_set_add" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="save">保存</button>
				<button class="layui-btn layui-btn-primary" id="close">关闭</button>
			</div>
		</div>
	</form>
</div>

</body>
</html>
<input type="hidden" id="systemCode_id" th:value="${systemCode}" />
<script th:src="@{{path}/script/sso/menu/ssomenu_add.js(path=${application.basePath}) }" type="text/javascript" charset="utf-8"></script>
<div th:include="../templates/common::html_footer"></div>
